--[[
dispatch all request
--]]

-- ngx.say("dispater.lua")



-- local mp = require ('MessagePack')
local cjson = require("cjson")
local function _log(str)
  ngx.log(ngx.ERR, str)
end

local upserver = ngx.shared.upserver

local tmp1 = upserver:get('server')
if not tmp1 then return ngx.say("server not ready") end

-- 
local servers = cjson.decode(tmp1)
